plugin->destroy = NPP_Destroy;
plugin->getvalue = NPP_GetValue;
plugin->setwindow = NPP_SetWindow;
+ plugin->event = NPP_HandleEvent;
return NPERR_NO_ERROR;
}
data = g_slice_new (PluginData);
instance->pdata = data;
+ /* set windowless mode */
+ funcs.setvalue(instance, NPPVpluginWindowBool, NULL);
+
data->proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION,
G_DBUS_PROXY_FLAGS_NONE,
NULL, /* interface info */
*(NPObject**)value = funcs.createobject (instance, &plugin_class);
break;
- case NPPVpluginNeedsXEmbed:
- *(bool *)value = TRUE;
- break;
-
default:
;
}
{
return NPERR_NO_ERROR;
}
+
+int16_t
+NPP_HandleEvent(NPP instance,
+ void *event)
+{
+ /* Ignore the event */
+ return FALSE;
+}